import { request } from "./request"
import { ArticleMeta } from "@/models/article"
export async function getAllArticles(): Promise<ArticleMeta[]> {
	return (await request(`/api/articles/all`, "GET", undefined)).data
}

export async function updateArticle(article: ArticleMeta): Promise<void> {
	return (await request(`/api/articles/update`, "POST", article))
}